<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <script src="../00.插件/babel.min.js"></script>
  <script src="../00.插件/react.development.js"></script>
  <script src="../00.插件/react-dom.development.js"></script>
  <title>Title</title>
</head>
<body>
<div id="app"></div>
<script type="text/babel">
  function Title() {
    return (
      <div className="outer">
        <h1>这是一个函数组件：标题</h1>
      </div>
    )
  }

  class Content extends React.Component{
  //  必须要有render
    render(){
      return (
        <div>
          <Title/>
          <hr/>
          <h3>这里式嵌套组件中的Content组件:这是一个类组件</h3>
        </div>
      )
    }
  }

  function Last() {
    return (
      <div>
        <Content/>
        <hr/>
        <h2>真的是最后一行了！！！</h2>
      </div>
    )
  }

  const root = ReactDOM.createRoot(document.getElementById("app")).render(<Last/>)
</script>
</body>
</html>